﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LuckyLoot.Common
{
    public static class BinaryImageHandler
    {
        public static string ByteArrayToString(byte[] image)
        { 
            string imageBase64 = Convert.ToBase64String(image);
            string imageSrc = string.Format("data:image/gif;base64,{0}", imageBase64);

            return imageSrc;
        }
    }
}
